package cn.amoqi.logger.controller;

import cn.amoqi.logger.bean.Student;
import cn.amoqi.logger.config.LogConfig;
import cn.amoqi.logger.controller.service.IndexService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 11
 * @author: zhuiFeng
 * @date: 2021年03月17日 11:52
 */
@RestController
@Slf4j
public class IndexController {

    private final LogConfig logConfig;
    @Autowired
    private IndexService indexService;

    public IndexController(LogConfig logConfig) {
        this.logConfig = logConfig;
    }


    @RequestMapping
    public void index(){
        Student index = indexService.getIndex(null);
        System.out.println(index);
    }
}
